package android.slc.db_backup.thread;

import android.slc.db_backup.entity.BackupDb;
import android.slc.db_backup.factory.BackUpHandlerFactory;
import android.slc.db_backup.factory.BackupHandler;

public class BackupThread implements Runnable{

    BackupDb backupDb;

    public BackupThread() {
    }

    public BackupThread(BackupDb backupDb) {
        this.backupDb = backupDb;
    }

    @Override
    public void run() {
        BackupHandler backUpHandler = BackUpHandlerFactory.getBackUpHandler(backupDb);
        backUpHandler.backup(backupDb);
    }

}
